﻿using UnityEngine;
using System.Collections;

public class PatrolAndShootController : RoamingController
{
	// Properties

	[SerializeField]
	float				m_shootCooltime	= 1f;


	protected override void OnInitialize()
	{
		base.OnInitialize();
		StartCoroutine(Shoot ());
	}

	IEnumerator Shoot()
	{
		while (true)					// 일정 주기마다 뿅뿅
		{
			yield return new WaitForSeconds(m_shootCooltime);
			character.Shoot();
		}
	}
}
